using Nop.Core;
using System;
using System.Data.Entity.ModelConfiguration;
using System.Linq.Expressions;
using System.Reflection;

namespace Nop.Plugin.ActiveForever.ActiveChat.Data
{
	public class BannedClientMap : EntityTypeConfiguration<BannedClient>
	{
		public BannedClientMap()
		{
			ToTable("ActiveChat_BannedClients");
			ParameterExpression parameterExpression = Expression.Parameter(typeof(BannedClient), "x");
			MemberExpression memberExpression = Expression.Property(parameterExpression, (MethodInfo)MethodBase.GetMethodFromHandle(typeof(BaseEntity).GetMethod("get_Id").MethodHandle));
			ParameterExpression[] parameterExpressionArray = { parameterExpression };
			HasKey(Expression.Lambda<Func<BannedClient, int>>(memberExpression, parameterExpressionArray));
		}
	}
}